<div id="assignments">
	<h2>Assignments</h2>
    <?php $this->renderPartial('/authItem/_buttons');?>
	<?php $this->widget('zii.widgets.grid.CGridView', array(
	    'dataProvider'=>$dataProvider,
	    'template'=>"{items}\n{pager}",
	    'emptyText'=>'No users found.',
	    'htmlOptions'=>array('class'=>'grid-view assignment-table'),
	    'columns'=>array(
    		array(
    			'name'=>'username',
    			'header'=>'Name',
    			'type'=>'raw',
    			'htmlOptions'=>array('class'=>'name-column'),
    			'value'=>'$data->getAssignmentLink()',
    		),
    		array(
    			'name'=>'assignments',
    			'header'=>'Roles',
    			'type'=>'raw',
    			'htmlOptions'=>array('class'=>'role-column'),
    			'value'=>'$data->getAssignmentRoles()',
    		),
			array(
    			'name'=>'Tasks',
    			'header'=>'Tasks',
    			'type'=>'raw',
    			'htmlOptions'=>array('class'=>'task-column'),
    			'value'=>'$data->getAssignmentTasks()',
    		),
			array(
    			'name'=>'assignments',
    			'header'=>'Operations',
    			'type'=>'raw',
    			'htmlOptions'=>array('class'=>'operation-column'),
    			'value'=>'$data->getAssignmentOperations()',
    		),
	    )
	)); ?>
</div>